/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function validateUser(){
	var errorname;
        var result=true;
	var x1=document.getElementById("username").value;
        var x2=document.getElementById("password").value;

       if(x1==""||x2=="" ){
	errorname="Enter your Username and Password Correctly";
	document.getElementById("usercheck").innerHTML=errorname;
        result=false;
	}else{
            document.getElementById("userCheck").innerHTML=" ";
        }
        
    return result;
}

  function validateRegister(){
        var errorname;
       // var result=true;
	var x1=document.getElementById("rusername").value;
        var x2=document.getElementById("rpassword").value;
        var x3=document.getElementById("rcpassword").value;

        if(x1==""||x2==""||x3=="" ){
	errorname="Enter your Username and Passwords Correctly";
	document.getElementById("cusercheck").innerHTML=errorname;
        return false;
        }
       if(x2!=x3){
       errorname="Password mismatch";
       document.getElementById("cusercheck").innerHTML=errorname;
       return false;
       }else{
           document.getElementById("cusercheck").innerHTML=" ";
           return true;
       }
     
  }





